<?php global $_webnukes;?>
<!DOCTYPE html>
<html dir="ltr" <?php language_attributes();?>>
<head>
<!-- define meta charset -->
<meta charset="UTF-8">
<!-- title -->
<title><?php echo (is_home() || is_front_page()) ? bloginfo('name') : wp_title(''); ?></title>

<!-- fav and touch icons -->
<link rel="shortcut icon" href="<?php echo $_webnukes->get_settings('general_settings', 'favicon');?>">

<!-- meta viewport -->
<meta name="viewport" content="width=device-width, maximum-scale=1" />

<?php wp_head();?>
</head>

<body <?php if(is_home()) body_class('' ); ?>>

<!-- main-container -->
<div id="main-container">

	<!-- Headder -->
	<header class="header"> 
		
		<!-- Logo -->
		<div class="logo">
			<a href="<?php echo home_url();?>" title="<?php bloginfo('name'); ?>">
				<?php if($logo_img = $_webnukes->get_settings('general_settings', 'custom_logo', get_template_directory_uri().'/images/logo.png')): ?>
				<?php $dim = $_webnukes->get_settings('general_settings', 'logo_dim');?>
				<img src="<?php echo $logo_img;?>" width="<?php echo $_webnukes->kvalue($dim, 'width',213);?>" height="<?php echo $_webnukes->kvalue($dim,'height',68);?>" alt="<?php bloginfo('name');?>" />
				<?php endif;?>
			</a>
		</div>
		
		<!-- Top Links -->		
		<div class="righthead">
			<div class="top-menu inline">
				<ul>
                	<?php if(get_option('users_can_register')):?>
					
					<?php wp_register('<li class="register">', '</li>'); /** show register link if the registration is active from wordpress admin panel */ ?>
					<li class="signin">
						<?php get_template_part('libs/header_sign_in'); /** Sign in form template */ ?>
					</li>
                    <?php endif;?>
                    
					<li class="contact">
						<?php get_template_part('libs/header_contact_form'); /** Contact form Template */ ?>
					</li>
				</ul>
			</div>
			
			<!-- Helpline -->
			<?php $h_settings = $_webnukes->get_settings("header_settings");?>
			<div class="contactinfo">
				<span class="black_text"><?php echo $_webnukes->kvalue($h_settings,'help_hours');?></span>
				<span class="phonenumber"><?php echo $_webnukes->kvalue($h_settings,'help_phone');?></span>
			</div>
		</div>
	</header>
	
	<!-- Main menu -->
	<nav class="menu container">
		<?php
			wp_nav_menu(
				array(
					'container' => false, /* classes for container */
					'menu' => 'header_menu', /* menu setup */
					'menu_id' => 'menu', /* css id for menu ul */
					'menu_class' => 'main-menu', /* css class for menu ul */
					'theme_location' => 'header_menu', /* we have two menus here we use our header menu as primery navigation */
					'depth' => 3, /* in depth of 3 we'r using dropdown menu */
				)
			);?>
		
		<!-- Search -->
		<div id="searchico"> <span class="search-button"></span>
			<div id="quicksearchbox" class="gray_gradient"> <img src="<?php echo THEME_URL;?>/images/sign_in_arrow.png" alt="Sign in arrow" class="boxArrow" />
				<?php get_search_form();?>
			</div>
		</div>
	</nav>